package com.hspedu.super_;

/**
 * @Author Stringzhua
 * @Date 2024/3/2 12:43
 * description:
 */
public class Base {////父类是Object
    public int n1 = 999;
    public int age = 111;

    //    private void cal(){
//      当然也需要遵顼访问权限的相关规则  'cal()' has private access in 'com.hspedu.super_.Base'
    public void cal() {
        System.out.println("Base类的cal()方法....");
    }

    public void eat() {
        System.out.println("Base类的eat()方法...");
    }
}
